package com.hxl.tech.gateway.common.constant;


import cn.hutool.core.date.DatePattern;

public enum CheckEnum {

    NOTNULL("must not be null", "不能为null"),
    NOTEMPTY("must not be empty", "不能为空"),
    PATTERNDAYTIME(DatePattern.NORM_DATETIME_PATTERN, "时间格式错误，不为yyyy-MM-dd HH:mm:ss"),
    PATTERNDAY(DatePattern.NORM_DATE_PATTERN, "时间格式错误，不为yyyy-MM-dd"),
    PATTERNTIME("HH:mm", "时间格式错误，不为HH:mm");

    private String key;
    private String value;

    CheckEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

}
